<!DOCTYPE html>
<!-- saved from url=(0032)http://auto.sina.cn/?ttp=navauto -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>绍兴房产在线</title>
    <meta name="keywords" content="汽车在线,绍兴在线,,绍兴汽车,汽车优惠,汽车资讯">
    <meta name="description" content="{$Think.config.CAR_DES}">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/Home/base.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/Home/wap_home.css">

    <link rel="stylesheet" href="__PUBLIC__/lib/photoswipe/photoswipe.css">
    <link rel="stylesheet" href="__PUBLIC__/lib/photoswipe/default-skin/default-skin.css">

    <script src="__PUBLIC__/lib/photoswipe/photoswipe.min.js"></script>
    <script src="__PUBLIC__/lib/photoswipe/photoswipe-ui-default.min.js"></script>

</head>

<body>
<div class="wrap" id="mainpage">

<!--首页顶通广告-->
<!-- header -->
<header>
    <div class="articleHead" id="j_artcileMain">
        <div class="mainNav">
            <a href="{:U('Index/index')}" class="gIcon sinaLogo"></a>
            <span class="navLine"></span>
            <a href="{:U('Home/index')}" class="gIcon levelOne">房产在线</a>
            <a class="gIcon navBtn" href="http://news.sina.cn/guide.d.html?vt=4">网站导航</a>
        </div>
    </div>
</header>

<!-- / header -->
<!--nav-->
<div class="nav" data-sudaclick="wap_nav">
    <ul class="nav-top clearfix">
        <li><a href="{:U('Home/newhouse')}">新房</a></li>
        <li><a href="{:U('Home/newhouse',array('sort'=>4))}">热门</a></li>
        <li><a href="{:U('Home/houseCal')}">计算器</a></li>
        <li><a href="{:U('Home/houseApply',array('Hid'=>'','Type'=>'KFT'))}">看房团</a></li>
        <li><a href="{:U('Home/homeYbj')}">家具</a></li>

    </ul>
    <div class="nav-more">
        <ul class="nav-bottom">
            <li><a href="{:U('Home/homeInfolist',array('Tid'=>'37'))}">新闻</a></li>
            <li><a href="{:U('Home/homeInfolist',array('Tid'=>'7'))}">楼市</a></li>
            <li><a href="{:U('Home/homeInfolist',array('Tid'=>'38'))}">观点</a></li>
            <li><a href="{:U('Home/homeInfolist',array('Tid'=>'15'))}">指南</a></li>
            <li><a href="{:U('Home/homeInfolist',array('Tid'=>'32'))}">专题</a></li>
        </ul>
    </div>
</div>
<!-- / nav-->

<!--<dl class="top-news clearfix">-->
<!--<dt class="left">焦点<em></em></dt>-->
<!--<dd class="left"><a href="http://t.cn/Ry9SkOO">全新高尔夫GTI提前试驾.戳这里</a></dd>-->
<!--</dl>-->

<div class="top-tabs">
    <div class="top-search" data-sudaclick="wap_sousuokuang">
        <form action="{:U('Home/searchHouseP')}" method="post" id="search-form">
            <div class="clearfix">
                <div class="top-search-select left">
                    <h3 class="selected">楼盘<em class="arrow"></em></h3>
                    <ul class="t-search-select-list">
                        <li>楼盘</li>
                        <li>文章</li>
                    </ul>
                </div>
                <div class="top-search-input left">
                    <input type="text" value="" placeholder="搜索关键字" name="keyword" id="keyword">
                    <input type="hidden" value="" name="Tid">
                </div>
                <button type="submit" class="top-search-btn right">搜索</button>
            </div>
        </form>
    </div>
</div>

<!--/搜索-->

<!--banner-->
<div class="banner" data-sudaclick="wap_focus">
    <div class="ul" data-i="3">

        <foreach name="DataArtTJ" item="ArtTJ">
            <a href="{$ArtTJ['linkurl']}"
            <if condition="$key eq 0 ">
                class="li"
                <else/>
                class="li l"
            </if>
            data-title="{$ArtTJ['title']}">
            <img src="{$ArtTJ['Spic1']|getHouseHdImg } " width="100%" height="200px">
                    <span class="adv_layer">
						<em>广告</em>
						<i class="mask-bg"></i>
					</span>
            </a>
        </foreach>

    </div>
    <div class="banner-tit">
        <span class="tit">测试标题</span>

        <div class="tit_r"><span class="num">1</span>/<span class="tot">{$DataArtTJ|count}</span></div>
    </div>
</div>
<!-- / banner-->

<!-- 最新资讯 -->
<div class="news-box">
    <div class="news-title clearfix" id="tabTitleNew">
        <h3 class="left on" data-type="zxzx" data-classid="37">最新资讯</h3>
        <h3 class="left" data-type="lsgd" data-classid="38">楼市观点</h3>
        <h3 class="left" data-type="lsdt" data-classid="7">楼市动态</h3>
    </div>
    <div id="tabConNew">
        <div>
            <div class="cars-news-list" id="divzxzx">
                <foreach name="DareTodayNews" item="TodayNew">
                    <a href="{$TodayNew['ID']|getHomeArtUrl}">
                        <dl class="carditems_list clearfix">
                            <dt class="carditems_list_dt"><img src="{$TodayNew['Spic']|getHouseHdImg }"
                                                               onerror="nofind();" alt="{$TodayNew['ID']}"></dt>
                            <dd class="carditems_list_dd">
                                <h3 class="carditems_list_h3 pic_t_44">{$TodayNew['Title']}</h3>

                                <p class="carditems_list_p"></p>

                                <p class="carditems_list_op clearfix">
                                    <span class="op_ico time_num left">{$TodayNew['InputDate']}</span>
                                    <span class="op_ico  right">&nbsp;</span>
                                </p>
                            </dd>
                        </dl>
                    </a>
                </foreach>
            </div>
            <div class="div_bottom">
                <a href="javascript:void(0);" class="btn_change" data-type="zxzx" data-classid="37" data-page = "0">换一换</a>
                <a href="{:U('Home/homeInfolist',array('Tid'=>'37'))}" class="btn_more">查看更多</a>
            </div>
        </div>
        <div class="hide" style="min-height: 350px">

        </div>
        <div class="hide" style="min-height: 350px">

        </div>
    </div>
</div>
<!-- / 今日推荐-->

<!-- 精品楼盘 -->
<div class="news-box">
    <div class="news-title clearfix" id="tabTitleHouse">
        <h3 class="left on" data-type="jplp" data-classid="0">精品楼盘</h3>
        <h3 class="left" data-type="zjkp"  data-classid="0">最新开盘</h3>
        <h3 class="left" data-type="rxlp" data-classid="0">热销楼盘</h3>
    </div>
    <div id="tabConHouse">
    <div>
        <div class="house-list" id="divjplp" >
            <foreach name="DataJPHouse" item="JPHouse">

                <a href="{:U('Home/house',array('Hid'=>$JPHouse['Hid']))}">
                    <dl class="houseitems_list clearfix">
                        <dt class="houseitems_list_dt">
                            <img src="{$Think.config.APP_WEB_URL}{$JPHouse['smallimg']}"
                                                            onerror="nofind();"></dt>
                        <dd class="houseitems_list_dd">
                            <h3 class="houseitems_list_h3">{$JPHouse['HouseName']}</h3>

                            <div class="houseitems_list_op">
                                <div class="price">{$JPHouse['jg'] }</div>
                                <div class="wylx">{$JPHouse['wylx']}</div>
                            </div>

                        </dd>
                    </dl>
                </a>
            </foreach>
        </div>
        <div class="div_bottom">
            <a href="javascript:void(0);" class="btn_change" data-type="jplp" data-classid="0" data-page="0">换一换</a>
            <a href="{:U('Home/newhouse')}" class="btn_more">查看更多</a>
        </div>
    </div>
    <div class="hide" style="min-height: 350px">

    </div>
    <div class="hide" style="min-height: 350px">

    </div>
    </div>
</div>
<!-- / 精品楼盘-->

<!-- 购房流程 -->
<div class="news-box" >
    <div class="news-title clearfix" >
        <h3 class="left">购房流程</h3>
    </div>
    <div>
        <dl class="buy_house">
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10633'))}" title="挑选房源" target="_blank">1、挑选房源</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10632'))}" title="实地考察" target="_blank">2、实地考察</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10631'))}" title="签订认购" target="_blank">3、签订认购</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10630'))}" title="签订合同" target="_blank">4、签订合同</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10629'))}" title="付款方式" target="_blank">5、付款方式</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10628'))}" title="保险公证" target="_blank">6、保险公证</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10627'))}" title="验收房屋" target="_blank">7、验收房屋</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10626'))}" title="物业管理" target="_blank">8、物业管理</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10625'))}" title="产权过户" target="_blank">9、产权过户</a>
            </dd>
            <dd>
                <a href="{:U('Home/homeInfo',array('id'=>'10624'))}" title="装饰装修" target="_blank">10、装饰装修</a>
            </dd>

        </dl>

    </div>
</div>
<!-- / 购房流程-->

<!--家居在线-->
<div class="news-box">
    <div class="news-title clearfix">
        <h3 class="left">家居在线</h3>
    </div>
    <div class="div-ybj"  id="divybj">
        <foreach name="DataYbj" item="Ybj">
                <div class="ul">
                    <a href="javascript:void(0);" class="aImg" data-cid="{$Ybj['ID']}" data-images="{$Ybj['Images']}" data-title="{$Ybj['YbjName']}">
                        <img src="{$Think.config.APP_WEB_URL}/home/{$Ybj['Miniature']}" alt="{$Ybj['YbjName']}">
                        <div class="text">{$Ybj['YbjName']}</div>
                    </a>
                </div>

        </foreach>
    </div>
    <div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

        <!-- Background of PhotoSwipe.
             It's a separate element, as animating opacity is faster than rgba(). -->
        <div class="pswp__bg"></div>

        <!-- Slides wrapper with overflow:hidden. -->
        <div class="pswp__scroll-wrap">

            <!-- Container that holds slides. PhotoSwipe keeps only 3 slides in DOM to save memory. -->
            <!-- don't modify these 3 pswp__item elements, data is added later on. -->
            <div class="pswp__container">
                <div class="pswp__item"></div>
                <div class="pswp__item"></div>
                <div class="pswp__item"></div>
            </div>

            <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
            <div class="pswp__ui pswp__ui--hidden">

                <div class="pswp__top-bar">

                    <!--  Controls are self-explanatory. Order can be changed. -->

                    <div class="pswp__counter"></div>

                    <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>



                    <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                    <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                    <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                    <!-- element will get class pswp__preloader--active when preloader is running -->
                    <div class="pswp__preloader">
                        <div class="pswp__preloader__icn">
                            <div class="pswp__preloader__cut">
                                <div class="pswp__preloader__donut"></div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                    <div class="pswp__share-tooltip"></div>
                </div>

                <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
                </button>

                <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
                </button>

                <div class="pswp__caption">
                    <div class="pswp__caption__center"></div>
                </div>

            </div>

        </div>

    </div>
    <div id="tempImg" class="hide"></div>
    <div class="div_bottom">
        <a href="javascript:void(0);" class="btn_change" data-type="ybj" data-classid="0" data-page="0">换一换</a>
        <a href="{:U('Home/homeYbj')}" class="btn_more">查看更多</a>
    </div>
</div>
<!-- / 家居在线-->

<div id="back_to_top" class="gotop_btn"></div>

<!-- 便捷工具 -->
<!--<div class="news-box">-->
    <!--<div class="news-title clearfix" data-sudaclick="wap_pangge_title">-->
        <!--<h3 class="left"><a href="{:U('Car/carartlist',array('ClassID'=>'041539940'))}">便捷工具</a></h3>-->
    <!--</div>-->
    <!--<div class="cars-news-list" data-sudaclick="wap_pagnge_list">-->

        <!--<div class="f-quick-link" data-sudaclick="biaozhunfooter">-->
            <!--<ul>-->
                <!--<li><a href="{:U('Calculator/PaidInFull1')}">全款购车</a></li>-->
                <!--<li><a href="{:U('Calculator/Loan1')}">贷款购车</a></li>-->
                <!--<li><a href="{:U('Calculator/Insurance1')}">保险计算</a></li>-->
                <!--<li><a href="{:U('Calculator/BreakRules')}">违章查询</a></li>-->
            <!--</ul>-->
        <!--</div>-->
    <!--</div>-->
<!--</div>-->

<!--foot-->
<include file="./APP/Tpl/Car/carfoot.html"/>
<!--/ foot -->

</div>
<!-- JS -->
<script src="__PUBLIC__/js/zepto.min.js"></script>
<script src="__PUBLIC__/js/idangerous.swiper-2.1.min.js"></script>
<script src="__PUBLIC__/js/Home/auto_wap_index.js"></script>
<script src="__PUBLIC__/js/Home/banner.js"></script>

<script>
    //搜索框相关逻辑
    $(function () {
        var Home_Art_URL_IMAGE = '{$Think.config.APP_WEB_URL}';

        $('#tabTitleNew > h3').on('click', function () {
            var selIndex = $(this).index();
            var newCon = $('#tabConNew > div');
            var type = $(this).data("type");
            var classid = $(this).data("classid");

            $('#tabTitleNew h3').removeClass('on');
            $(this).addClass('on');

            newCon.hide();
            newCon.each(function (index) {
                $(this).hide();
                if (index == selIndex) {
                    if ($(this).find('div').length != 0) {
                        $(this).show();
                    } else {
                        var selDiv = $(this);
                        selDiv.show();
                        $.ajax({
                            type: 'Post',
                            url: '/index.php/?m=Home&a=changeList',
                            data: { type: type, classid: classid,page:0,pageSize:4},
                            dataType: 'json',
                            success: function (data) {
                                if (data.status == 1) {
                                    var Home_Art_URL_IMAGE = '{$Think.config.APP_WEB_URL}';

                                    var dataArr = data.data;
                                    var htmlArr = [];
                                    if (selIndex != 0) {
                                        htmlArr.push(' <div class="cars-news-list" id="div' + type + '" >');
                                        for (var i = 0; i < dataArr.length; i++) {
                                            htmlArr.push('<a href="/index.php/?m=Home&a=homeInfo&id=' + dataArr[i].ID + '">');
                                            htmlArr.push('<dl class="carditems_list clearfix">');
                                            htmlArr.push(' <dt class="carditems_list_dt"><img src="' + dataArr[i].Spic.replace("{fy_fcml}", Home_Art_URL_IMAGE + "house/") + '"  onerror="nofind();"  ></dt>');
                                            htmlArr.push('<dd class="carditems_list_dd">');
                                            htmlArr.push('<h3 class="carditems_list_h3 pic_t_44">' + dataArr[i].Title + '</h3>')
                                            htmlArr.push('<p class="carditems_list_p"></p>')
                                            htmlArr.push('<p class="carditems_list_op clearfix">');
                                            htmlArr.push(' <span class="op_ico time_num left">' + dataArr[i].DateAndTime + '</span>');
                                            htmlArr.push('<span class="op_ico  right">&nbsp;</span>');
                                            htmlArr.push('</p></dd>')
                                            htmlArr.push('</dl>');
                                            htmlArr.push('</a>');
                                        }
                                        htmlArr.push('</div><div class="div_bottom" >');
                                        htmlArr.push('<a href="javascript:void(0);" class="btn_change" data-type="' + type + '" data-classid = "' + classid + '" data-page = "0" >换一换</a>');
                                        htmlArr.push('<a href="/index.php/?m=Home&a=homeInfolist&Tid=' + classid + '" class="btn_more">查看更多</a>');
                                        htmlArr.push('</div>');

                                        selDiv.empty();
                                        selDiv.append(htmlArr.join(''));
                                    }

                                } else {
                                    alert(data.info);
                                }
                            },
                            error: function (xhr, type) {
                                alert('无法连接到服务器');
                            }});
                    }
                }
            });

        });

        $('#tabTitleHouse > h3').on('click', function(){
            var selIndex = $(this).index();
            var newCon = $('#tabConHouse > div');
            var type = $(this).data("type");
            var classid = $(this).data("classid");

            $('#tabTitleHouse h3').removeClass('on');
            $(this).addClass('on');

            newCon.hide();
            newCon.each(function (index) {
                $(this).hide();
                if (index == selIndex) {
                    if ($(this).find('div').length != 0) {
                        $(this).show();
                    } else {
                        var selDiv = $(this);
                        selDiv.show();
                        $.ajax({
                            type: 'Post',
                            url: '/index.php/?m=Home&a=changeList',
                            data: { type: type, classid: classid,page:0,pageSize:4},
                            dataType: 'json',
                            success: function (data) {
                                if (data.status == 1) {
                                    var Home_Art_URL_IMAGE = '{$Think.config.APP_WEB_URL}';

                                    var dataArr = data.data;
                                    var htmlArr = [];
                                    if (selIndex != 0) {
                                        htmlArr.push(' <div class="house-list" id="div' + type + '" >');
                                        for (var i = 0; i < dataArr.length; i++) {
                                            htmlArr.push('<a href="/index.php/?m=Home&a=house&Hid=' + dataArr[i].hid + '">');
                                            htmlArr.push('<dl class="houseitems_list clearfix">');
                                            htmlArr.push(' <dt class="houseitems_list_dt"><img src="' + Home_Art_URL_IMAGE + dataArr[i].smallimg + '"  onerror="nofind();"  ></dt>');
                                            htmlArr.push('<dd class="houseitems_list_dd">');

                                            if(type == "zjkp"){
                                                htmlArr.push("<div class='house_title'>");
                                                if(i<3){
                                                    htmlArr.push('<div class="num_1 fl">' + (i+1) + '</div>')
                                                }else{
                                                    htmlArr.push('<div class="num_2 fl">' + (i+1) + '</div>')
                                                }
                                                htmlArr.push('<h3 class="houseitems_list_h3 fl">' + dataArr[i].HouseName + '</h3>')
                                                htmlArr.push("</div>");
                                            }else if(type == "jplp"){
                                                htmlArr.push('<h3 class="houseitems_list_h3 ">' + dataArr[i].HouseName + '</h3>')
                                            }else if(type == "rxlp"){
                                                if(i<3){
                                                    htmlArr.push('<div class="num_1 fl">' + (i+1) + '</div>')
                                                }else{
                                                    htmlArr.push('<div class="num_2 fl">' + (i+1) + '</div>')
                                                }
                                                htmlArr.push('<h3 class="houseitems_list_h3 fl">' + dataArr[i].HouseName + '</h3>')
                                            }
                                            htmlArr.push('<div class="houseitems_list_op">');
                                            if(type == "zjkp"){
                                                htmlArr.push('<div class="price">' + dataArr[i].jg + '</div>');
                                                htmlArr.push('<div class="city_three">' + dataArr[i].city_three + '</div>');
                                                htmlArr.push('<div class="kpsj">' + dataArr[i].kpsj + '</div>');
                                            }else if(type == "jplp"){
                                                htmlArr.push('<div class="price">' + dataArr[i].jg + '</div>');
                                                htmlArr.push('<div class="wylx">' + dataArr[i].wylx + '</div>');
                                            }else if(type == "rxlp"){
                                                htmlArr.push('<div class="sale_num">' + dataArr[i].sale_num + ' 套 </div>');
                                                htmlArr.push('<div class="sale_ts">' + dataArr[i].sale_ts + ' m<sup>2</sup></div>');
                                                htmlArr.push('<div class="n_m">' + dataArr[i].n_m + ' 月 </div>');
                                            }
                                            htmlArr.push('</div></dd>')
                                            htmlArr.push('</dl>');
                                            htmlArr.push('</a>');
                                        }
                                        htmlArr.push('</div><div class="div_bottom" >');
                                        htmlArr.push('<a href="javascript:void(0);" class="btn_change" data-type="' + type + '" data-classid = "0" data-page = "0">换一换</a>');
                                        htmlArr.push('<a href="/index.php/?m=Home&a=newhouse" class="btn_more">查看更多</a>');
                                        htmlArr.push('</div>');

                                        selDiv.empty();
                                        selDiv.append(htmlArr.join(''));
                                    }

                                } else {
                                    alert(data.info);
                                }
                            },
                            error: function (xhr, type) {
                                alert('无法连接到服务器');
                            }});
                    }
                }
            });
        });

        $(".btn_change").live('click', function () {

            var type = $(this).data("type");
            var classid = $(this).data("classid");

            var page = $(this).data("page")+1;
            $(this).data("page",page);
            $.ajax({
                type: 'Post',
                url: '/index.php/?m=Home&a=changeList',
                data: { type: type, classid: classid,page:page,pageSize:4},
                dataType: 'json',
                timeout: 5000,
                success: function (data) {
                    if (data.status == 1) {
                        var Home_Art_URL_IMAGE = '{$Think.config.APP_WEB_URL}';

                        var dataArr = data.data;
                        var htmlArr = [];
                        if (type == "zxzx" || type == "lsgd" || type == "lsdt") {
                            for (var i = 0; i < dataArr.length; i++) {
                                htmlArr.push('<a href="/index.php/?m=Home&a=homeInfo&id=' + dataArr[i].ID + '">');
                                htmlArr.push('<dl class="carditems_list clearfix">');
                                htmlArr.push(' <dt class="carditems_list_dt"><img src="' + dataArr[i].Spic.replace("{fy_fcml}", Home_Art_URL_IMAGE + "house/") + '"  onerror="nofind();"  ></dt>');
                                htmlArr.push('<dd class="carditems_list_dd">');
                                htmlArr.push('<h3 class="carditems_list_h3 pic_t_44">' + dataArr[i].Title + '</h3>')
                                htmlArr.push('<p class="carditems_list_p"></p>')
                                htmlArr.push('<p class="carditems_list_op clearfix">');
                                htmlArr.push(' <span class="op_ico time_num left">' + dataArr[i].DateAndTime + '</span>');
                                htmlArr.push('<span class="op_ico  right">&nbsp;</span>');
                                htmlArr.push('</p></dd>')
                                htmlArr.push('</dl>');
                                htmlArr.push('</a>');
                            }
                            $("#div" + type).empty();
                            $("#div" + type).append(htmlArr.join(''));
                        } else if (type == "jplp" || type == "zjkp" || type == "rxlp") {
                            for (var i = 0; i < dataArr.length; i++) {
                                htmlArr.push('<a href="/index.php/?m=Home&a=house&Hid=' + dataArr[i].hid + '">');
                                htmlArr.push('<dl class="houseitems_list clearfix">');
                                htmlArr.push(' <dt class="houseitems_list_dt"><img src="' + Home_Art_URL_IMAGE + dataArr[i].smallimg + '"  onerror="nofind();"  ></dt>');
                                htmlArr.push('<dd class="houseitems_list_dd">');
                                if(type == "zjkp"){
                                    htmlArr.push("<div class='house_title'>");
                                    htmlArr.push('<div class="num_2 fl">' + ((page)*4+(i+1)) + '</div>')
                                    htmlArr.push('<h3 class="houseitems_list_h3 fl">' + dataArr[i].HouseName + '</h3>')
                                    htmlArr.push("</div>");
                                }else if(type == "jplp"){
                                    htmlArr.push('<h3 class="houseitems_list_h3 ">' + dataArr[i].HouseName + '</h3>')
                                }else if(type == "rxlp"){
                                    htmlArr.push("<div class='house_title'>");
                                    htmlArr.push('<div class="num_2 fl">' + ((page)*4+(i+1)) + '</div>')
                                    htmlArr.push('<h3 class="houseitems_list_h3 fl">' + dataArr[i].HouseName + '</h3>')
                                    htmlArr.push("</div>");
                                }
                                htmlArr.push('<div class="houseitems_list_op">');

                                if(type == "zjkp"){
                                    htmlArr.push('<div class="price">' + dataArr[i].jg + '</div>');
                                    htmlArr.push('<div class="city_three">' + dataArr[i].city_three + '</div>');
                                    htmlArr.push('<div class="kpsj">' + dataArr[i].kpsj + '</div>');
                                }else if(type == "jplp"){
                                    htmlArr.push('<div class="price">' + dataArr[i].jg + '</div>');
                                    htmlArr.push('<div class="wylx">' + dataArr[i].wylx + '</div>');
                                }else if(type == "rxlp"){
                                    htmlArr.push('<div class="sale_num">' + dataArr[i].sale_num + ' 套 </div>');
                                    htmlArr.push('<div class="sale_ts">' + dataArr[i].sale_ts + ' m<sup>2</sup> </div>');
                                    htmlArr.push('<div class="n_m">' + dataArr[i].n_m + ' 月 </div>');
                                }
                                htmlArr.push('</div></dd>')
                                htmlArr.push('</dl>');
                                htmlArr.push('</a>');
                            }
                            $("#div"+type).empty();
                            $("#div"+type).append(htmlArr.join(''));
                        }else if(type == "ybj"){

                            for (var i = 0; i < dataArr.length; i++) {
                                htmlArr.push(' <div class="ul">')
                                htmlArr.push('  <a href="javascript:void(0);" class="aImg" data-images="'+dataArr[i].Images+'" data-title="'+dataArr[i].YbjName+'">')
                                htmlArr.push('  <img src="'+Home_Art_URL_IMAGE+'/home/'+dataArr[i].Miniature+'">')
                                htmlArr.push('  <div class="text">'+dataArr[i].YbjName+'</div>')
                                htmlArr.push('  </a> </div>')
                            }
                            $("#div"+type).empty();
                            $("#div"+type).append(htmlArr.join(''));
                        }

                    } else {
                        alert(data.info);
                    }
                },
                error: function (xhr, type) {
                    alert('无法连接到服务器');
                }
            });
        });

        $(".aImg").live("click",function(){

            var imgArr =  $(this).data("images").split(",");
            var title = $(this).data("title");
            var items = new Array();

            $("#tempImg").empty();

            for(var i=0;i<imgArr.length;i++){

                var objImg2 = document.createElement('img');
                objImg2.src = Home_Art_URL_IMAGE + "\\home\\" + imgArr[i];
                objImg2.className = "hide";

                $("#tempImg").append(objImg2);

                if(i == imgArr.length-1){
                    objImg2.onload = function(){
                        $("#tempImg > img").each(function(index){
                            var img = $(this);
                            var item = new Object();
                            item.title = title;
                            item.src =  img[0].src;
                            item.w = img[0].naturalWidth;
                            item.h = img[0].naturalHeight;
                            items.push(item);
                        })

                        var pswpElement = document.querySelectorAll('.pswp')[0];

                        var options = {
                            // history & focus options are disabled on CodePen
                            index:0,
                            history: false,
                            focus: false,

                            showAnimationDuration: 0,
                            hideAnimationDuration: 0

                        };

                        var gallery = new PhotoSwipe( pswpElement, PhotoSwipeUI_Default, items, options);
                        gallery.init();
                    }
                }


            }

            //alert( $(this).data("cid"))
        });
        $('#keyword').focus(function () {
            if ($(this).val() == '搜索关键字') {
                $(this).val('');
            }
        }).blur(function () {
            if ($(this).val() == '') {
                $(this).val('搜索关键字');
            }
        });

        $(".t-search-select-list li").click(function () {
            var text = $(this).text();
            $('.selected').html(text + '<em class="arrow"></em>');
            $(this).parent().toggle();
            if (text == '文章') {
                $('#search-form').attr('action', '/index.php?m=Home&a=searArtlist');
                $('#search-form').attr('method', 'post');
                $('#keyword').attr('name', 'keyword');
            }
            if (text == '楼盘') {
                $('#search-form').attr('action', '/index.php?m=Home&a=searchHouseP');
                $('#search-form').attr('method', 'post');
                $('#keyword').attr('name', 'keyword');

            }
        });
    });
</script>


</body>
</html>